package com.luych.toolbox.common.feign.param.automation.service;

import com.luych.toolbox.common.enums.AutoTaskTemplateNodeStdoutType;
import com.luych.toolbox.common.enums.AutoTaskTemplateNodeType;
import com.luych.toolbox.common.feign.FeignParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel("任务模板节点参数")
public class AutoTaskTemplateNodeParam extends FeignParam {

    @ApiModelProperty("序号")
    private Integer num;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("类型")
    private AutoTaskTemplateNodeType type;
    @ApiModelProperty("目标服务器下标，当任务类型为“BASH”和“FILE”时此字段有值")
    private Integer serverIndex;
    @ApiModelProperty("数据源ID，当任务类型为“MYSQL”时此字段有值")
    private String dataSourceId;
    @ApiModelProperty("脚本ID，当任务类型为“BASH”和“SQL”时此字段有值")
    private String scriptId;
    @ApiModelProperty("文件ID，当任务类型为“FILE”时此字段有值")
    private String fileId;
    @ApiModelProperty("输入，当任务类型为“BASH”和“SQL”时此字段有值")
    private List<AutoTaskTemplateNodeStdinParam> stdin;
    @ApiModelProperty("输出格式，当任务类型为“BASH”和“SQL”时此字段有值")
    private AutoTaskTemplateNodeStdoutType stdoutType;
    @ApiModelProperty("输出，当任务类型为“BASH”和“SQL”时此字段有值")
    private List<AutoTaskTemplateNodeStdoutParam> stdout;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AutoTaskTemplateNodeType getType() {
        return type;
    }

    public void setType(AutoTaskTemplateNodeType type) {
        this.type = type;
    }

    public String getScriptId() {
        return scriptId;
    }

    public void setScriptId(String scriptId) {
        this.scriptId = scriptId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public Integer getServerIndex() {
        return serverIndex;
    }

    public void setServerIndex(Integer serverIndex) {
        this.serverIndex = serverIndex;
    }

    public String getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(String dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public List<AutoTaskTemplateNodeStdinParam> getStdin() {
        return stdin;
    }

    public void setStdin(List<AutoTaskTemplateNodeStdinParam> stdin) {
        this.stdin = stdin;
    }

    public AutoTaskTemplateNodeStdoutType getStdoutType() {
        return stdoutType;
    }

    public void setStdoutType(AutoTaskTemplateNodeStdoutType stdoutType) {
        this.stdoutType = stdoutType;
    }

    public List<AutoTaskTemplateNodeStdoutParam> getStdout() {
        return stdout;
    }

    public void setStdout(List<AutoTaskTemplateNodeStdoutParam> stdout) {
        this.stdout = stdout;
    }
}